< previous page page_195 next page >

Page 195
of code for each form that is in the application. The first line of code will display text in the first panel describing what function the form performs. The following line of code should be inserted into the child form's LOAD routine:
StatusBar1.Panels.Item(1).Text = Address book detail display
Then in the form's UNLOAD routine, this property should be set back to blanks to remove the displayed information. At this point, your mdiMainForm should resemble the one shown in Figure 7.26.
12181-0195a.gif
Figure 7.26.
The final MDI parent form for the sample
application showing the menu, toolbar, and
status bar.
You should add only one more thing to the application prototype: the Common Dialog functions.
Common Dialog
You have already seen what you can do with the Common Dialog control. However, now you want to add these features to the application. For the File Open and Save functions, just add the code to display the common dialog form when the option is clicked. For the Color and Font functions, you really want to display a form that lists the different objects and features of these objects that can be modified using these common dialog boxes. For example, you might want to allow the user to change the background color of all the forms, or change the font style for just the command buttons, labels, or input text areas. Besides letting the user change these options, you must have a way to save the settings for the next time the application is executed. Prior to Windows 95, most applications used an initialization file or .INI to save application-related information. With the advent of Windows 95 and Visual Basic 5, programmers can also use the System Registry to save application related information instead of an .INI file. Two new functions are available to you in your application.
When you must save application-execution information in between the times you run it, you can use the SaveSetting command to save the information in the user's system

 
< previous page page_195 next page >

If you like this book, buy it!